{include file="kuerp/common/menu" /}
<div class="panel panel-default panel-intro">
    <div class="panel-body">
        <div id="myTabContent" class="tab-content">
            <div class="tab-pane fade active in" id="one">
                <div class="widget-body no-padding">

                    <script type="text/html" id="thisToolbar">
                        <div class="layui-btn-container">
                           <button class="layui-btn layui-icon-btn layui-btn-sm layui-bg-cyan" lay-event="refresh"><i class="layui-icon">&#xe669;</i> {:__('Refresh')}</button>
                        </div>
                    </script>

                    <form class="layui-form layui-search" id="layui-search" role="form">
                        
                        <div class="layui-input-inline">
                            <input type="text" name="purchase_code" id="purchase_code" autocomplete="off" placeholder="{:__('Purchase_code')}" class="layui-input">
                        </div>
                        <div class="layui-input-inline">
                            <input type="text" name="purchase_time" id="purchase_time" autocomplete="off" placeholder="{:__('Purchase_time')}" class="layui-input">
                        </div>
                        <div class="layui-input-inline">
                            <input type="text" name="goods_code" id="goods_code" autocomplete="off" placeholder="{:__('Goods_code')}" class="layui-input">
                        </div>
                        <div class="layui-input-inline">
                            <input id="customers_id" name="customers_id" class="layui-input form-control selectpage" data-multiple="false" data-source="kuerp/customers/index" data-search-field="customer_name" data-field="customer_name" type="text" value="" placeholder="{:__('Customers_id')}">
                            <!-- <select name="customers_id" id="customers_id" class="layui-input">
                                <option value="">请选择{:__('Customers_id')}</option>
                                {foreach name="customers" item="vo"}
                                <option value="{$vo.id}">{$vo.customer_name}</option>
                                {/foreach}
                            </select> -->
                        </div>
                        <div class="layui-input-inline">
                            <select name="stores_id" id="stores_id" class="layui-input">
                                <option value="">请选择{:__('仓库')}</option>
                                {foreach name="storesList" item="vo"}
                                <option value="{$vo.id}" {if condition="$vo.id == $stores_id"}selected{/if}>{$vo.name}</option>
                                {/foreach}
                            </select>
                        </div>
                        <!-- <div class="layui-input-inline">
                            <select name="goods_type" id="goods_type" class="layui-input">
                                <option value="">请选择{:__('产品购买类型')}</option>
                                {foreach name="goodstypelist" item="vo"}
                                <option value="{$vo}">{$vo}</option>
                                {/foreach}
                            </select>
                        </div>
                        <div class="layui-input-inline">
                            <select name="pay_status" id="pay_status" placeholder="{:__('Pay_status')}" class="layui-input">
                                <option value="">请选择{:__('Pay_status')}</option>
                                <option value="0">{:__('Pay_status 0')}</option>
                                <option value="1">{:__('Pay_status 1')}</option>
                                <option value="2">{:__('Pay_status 2')}</option>
                            </select>
                        </div> -->
                        <div class="layui-input-inline " style="width: 90px">
                            <button class="layui-btn layui-btn-sm btn-refresh" type="button" id="search" data-type="reload">
                                 <i class="layui-icon"></i> {:__('Search')}
                            </button>
                         </div>
                    </form>
                    <table id="table" class="table table-striped table-bordered table-hover table-nowrap"
                           width="100%" lay-filter="table">
                    </table>
                    <script type="text/html" id="btnToolbar">
                        <div class="layui-btn-container" style="text-align: right">
                            <button type="button" id="sure" class="btn btn-success btn-embossed" lay-event="sure">确定</button>
                            <button type="button" id="cancel" class="btn btn-default btn-embossed">取消</button>
                        </div>
                    </script>
                </div>
            </div>

        </div>
    </div>
</div>
<style>
    .layui-table-tool{
        z-index:102
    }
    .sp_result_area{
        z-index:103;
    }
</style>